-Kernels Must And Can Be Small
نویسنده
چکیده
For a general acceptance, -kernels must be fast and not burden applications. For ful lling these conditions, cache architectures require -kernels to be small. The L4 -kernel shows that smallness can be achieved. 1. -kernels must be small This is not obvious. Most rst-generation -kernels were large; typically they need 300 Kbyte of code and 140 system calls. Some of their architects argued that ` ' in this context means `lower level' and not `small size'. Demanding smallness radically di ers from this approach. It could (and in fact it does) change -kernel technology dramatically. Why should -kernels be as small as possible? (We avoid the term \minimal" because of its mathematical implications.) The reasons are performance, exibility and perhaps correctness. 1.1. \A non-small -kernel is not fast." The most relevant performance costs of a -kernel result from its cache consumption. If a frequently invoked kernel operation accesses a substantial part of the primary cache (\ oods the cache"), the user is punished twice. First, the kernel operation itself is degraded by cache misses, since it must displace user code and data. Second, the user program has to pay for additional cache misses, since it must re-establish its cache working set. From Chen's [1993] measurements for a Mach benchmark on a DS 5000/200, we can calculate that on average 20% of the system cache misses are caused by user-kernel competition. We expect a substantially higher number for more up-to-date 30 Saw Mill River Road, Hawthorne, NY 10532, USA GMD SET{RS, 53754 Sankt Augustin, Germany hardware and faster (but non-small) kernels. On modern processors, the mentioned cache misses might consume up to 5 ( ve!) times as many cycles as the kernel code required for execution in the ideal case. What happens if the kernel working set is reduced, say from 75% to 15% of the cache size? The small kernel needs only 1/5 of the instructions. Since -kernel operations usually execute very few loops, we can expect a corresponding 4 to 5 times speed improvement. There is a good chance that competition between user working-set and kernel working-set is substantially reduced. Ideally, frequently invoking a -kernel operation does neither cost kernel-level nor subsequent user-level cache misses.
منابع مشابه
Effect of Infrared Roasting Process on the Microorganism Contaminations of Long and Round Iranian Pistachio Kernels
In this paper, the effect of infrared (IR) roasting conditions on Aflatoxins and total counts of two types of Iranian pistachio kernels, long and round, was studied. The optimized roasting conditions, 70 V for round pistachios and 90 V for long pistachios with 10 cm distance from IR source were used. Naturally Aflatoxin-contaminated kernels were supplied and roasted. Microbiological an...
متن کاملInvestigating the effects of different kernels used for CT image reconstruction on dose distributions in treatment planning of kidney cancer radiotherapy
Introduction: The quality of CT images used for treatment planning of cancer patients is an important issue in accurate outlining of the tumor volume and organs at risk. Different kernels in CT scanner systems are available for improving the image quality. Applying these kernels on CT images will change the CT numbers and electron density of tissues, conse...
متن کاملApplication of Artificial Neural Networks (ANN) and Image Processing for Prediction of Gravimetrical Properties of Roasted Pistachio Nuts and Kernels
Roasting is among the most common methods of nut processing causing physical and chemical changes and ultimately increasing overall acceptance of the product. In this research, the effects of temperature (90, 120 ,and 150°C), time (20, 35 ,and 50 min) ,and roasting air velocity (0.5, 1.5 ,and 2.5 m/s) on gravimetrical properties of pistachio nuts and kernels including unit mass, true density, o...
متن کاملEnhanced aldolase activity and glycolysis as short term effects of hydrogen cyanide for the release of dormancy in walnut kernels
Seed dormancy removal by cold stratification is accompanied by the development of gluconeogenic competence. Although hydrogen cyanide can stimulate the germination of many herbaceous dormant seeds and increase gluconeogenesis in long term, its short-term effects on sugar metabolism require further investigation. Accordingly, an experiment in the form of complete randomized design was carried ou...
متن کاملActions, Norms, Subactions and Kernels of (Fuzzy) Norms
In this paper, we introduce the notion of an action $Y_X$as a generalization of the notion of a module,and the notion of a norm $vt: Y_Xto F$, where $F$ is a field and $vartriangle(xy)vartriangle(y') =$ $ vartriangle(y)vartriangle(xy')$ as well as the notion of fuzzy norm, where $vt: Y_Xto [0, 1]subseteq {bf R}$, with $bf R$ the set of all real numbers. A great many standard mappings on algebr...
متن کامل